<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><s:property value="#session.access"/></title>
<meta name="viewport" content="width=device-width,inital-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<meta name="format-detection" content="telephone=no,email=no,adress=no">
<link href="<%=request.getContextPath()%>/css/global.css" type="text/css" rel="stylesheet" />
<link href="<%=request.getContextPath() %>/css/bootstrap.css" type="text/css" rel="stylesheet"/>
<link href="<%=request.getContextPath() %>/css/bootstrap-responsive.css" type="text/css" rel="stylesheet"/>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/global.js"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/bootstrap.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/validate/validate.js"></script>
<script type="text/javascript">
function formSubmit(){
	if($("#subName").val()==""){
		$("#subName").focus();
		return;
	}
	if($("#subPwd").val()==""){
		$("#subPwd").focus();
		return;
	}
	$("#sform").submit();
}
</script>
</head>
<body>
	<div class="container">
		
		<s:action name="global_menu"  executeResult="true"></s:action>
		
		<div class="row">
			<div class="span12">
					<ul class="breadcrumb">
						<li>
							<a href="javascript:void(0)">首页</a> <span class="divider">/</span>
						</li>
						<li>
							<a href="javascript:void(0)">个人中心</a> <span class="divider">/</span>
						</li>
						<li class="active">
							子账户管理
						</li>
					</ul>
					
					<h4>
						配置子账户信息
					</h4>
					
					 <form id="sform" class="form-horizontal" action="<%=request.getContextPath() %>/subject_save.html" method="post" enctype="multipart/form-data">
						<input type="hidden" class="input-xlarge" id="subNo" name="subNo" value="<s:property value="subjectBean.subNo"/>" />
						<fieldset>
							<div class="control-group">
								<label class="control-label" >账户名称</label>
								<div class="controls">
									<input type="text" class="input-xlarge" id="subName" name="subName" value="<s:property value="subjectBean.subName"/>" />
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" >密码</label>
								<div class="controls">
									<input type="text" class="input-xlarge" id="subPwd" name="subPwd" value="<s:property value="subjectBean.subPwd"/>" />
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" >可用权限</label>
								<div class="controls">
									<div class="control-group">
										<label class="checkbox">
											<input type="checkbox" name="subMenu" value="00" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][0]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][0][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="01" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][1]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][1][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="02" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][2]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][2][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="03" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][3]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][3][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="04" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][4]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][4][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="05" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][5]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][5][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="06" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[0][6]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[0][6][0]"/>
										</label>
									</div>
									
									
									
									<div class="control-group">
										<label class="checkbox">
											<input type="checkbox" name="subMenu" value="10" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][0]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][0][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="11" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][1]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][1][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="12" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][2]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][2][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="13" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][3]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][3][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="14" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][4]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][4][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="15" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][5]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][5][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="16" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][6]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][6][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="17" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[1][7]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[1][7][0]"/>
										</label>
									</div>
									
									
									
									<div class="control-group">
										<label class="checkbox">
											<input type="checkbox" name="subMenu" value="20" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][0]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][0][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="21" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][1]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][1][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="22" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][2]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][2][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="23" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][3]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][3][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="24" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][4]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][4][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="25" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][5]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][5][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="26" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[2][6]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[2][6][0]"/>
										</label>
									</div>
									
									
									
									<div class="control-group">
										<label class="checkbox">
											<input type="checkbox" name="subMenu" value="30" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[3][0]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[3][0][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="31" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[3][1]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[3][1][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="32" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[3][2]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[3][2][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="33" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[3][3]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[3][3][0]"/>
										</label>
									</div>
									
									
									<div class="control-group">
										<label class="checkbox">
											<input type="checkbox" name="subMenu" value="40" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][0]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][0][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="41" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][1]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][1][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="42" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][2]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][2][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="43" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][3]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][3][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="44" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][4]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][4][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="45" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][5]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][5][0]"/>
										</label>
										<label class="checkbox" style="margin-left: 20px;">
											<input type="checkbox" name="subMenu" value="46" <s:if test="@net.sf.json.JSONArray@fromObject(subjectBean.subMenu)[4][6]==1">checked="checked"</s:if>/>
											<s:property value="@common.Menu@MENU[4][6][0]"/>
										</label>
									</div>
								</div>
								
								<div class="control-group">
									<label class="control-label" >备注信息</label>
									<div class="controls">
										<textarea class="input-xlarge" id="subRemark" name="subRemark" rows="4" ><s:property value="subjectBean.subRemark"/></textarea>
									</div>
								</div>
							</div>
							<div class="form-actions">
								<input type="button" class="btn btn-primary" onclick="formSubmit();" value="保存"/>
								<input type="button" class="btn" onclick="location.href='<%=request.getContextPath()%>/subject_list.html'" value="取消"/>
							</div>
						</fieldset>
					</form>
		</div>
	</div>
	
	
		<s:action name="global_foot"  executeResult="true"></s:action>
</div>
</body>
</html>